{extend name='table'}

{block name="button"}

{/block}

{block name="content"}
<div class="think-box-shadow">
   {include file='jxsduihuan/index_search'}
    <table id="OplogTable" data-url="{:request()->url()}" data-target-search="form.form-search"></table>
</div>
{/block}

{block name='script'}
<script>
    $(function () {
        $('#OplogTable').layTable({
            even: true, height: 'full',
            sort: {field: 'id', type: 'desc'},
            cols: [[
                {checkbox: true},
                {field: 'id', title: '编号', width: 70, sort: true, align: 'center'},
                {field: 'order_no', title: '{:lang("订单编号")}'},
                {field: 'add_time', title: '{:lang("订单时间")}'},
                {field: 'goods_name', title: '{:lang("商品名称")}'},
                {field: 'integral', title: '{:lang("消耗积分")}'},
                {field: 'pay_price', title: '{:lang("支付金额")}'},
                {field: 'user_id', title: '{:lang("兑换会员ID")}'},
                {field: 'nickname', title: '{:lang("会员昵称")}'},
                {field: 'username', title: '{:lang("姓名")}'},
                {field: 'mobile', title: '{:lang("手机号")}'},
                {field: 'address', title: '{:lang("收货地址")}'},
                {field: 'status_text', title: '{:lang("商品状态")}'},
                {field: 'order_status_text', title: '{:lang("支付状态")}'},
                {field: 'courier_code', title: '{:lang("物流单号")}'},
                {field: 'logistics_company', title: '{:lang("物流商")}'},
                // {toolbar: '#toolbar', title: '{:lang("操作面板")}',width: 100, align: 'center',fixed: 'right'}
            ]]
        });
    });
</script>
<!-- 操控面板的模板 -->
												
<script type="text/html" id="toolbar">
    
       {{# if(d.status == '0' && d.order_status == '1' ){  }}
         <a class="layui-btn layui-btn-sm" data-event-dbclick data-title="填写发货" data-modal='{:url("edit")}?id={{d.id}}'>{:lang('填写发货')}</a>
       {{# }else { }}
        <a class="layui-btn layui-btn-sm layui-btn-disabled" >{:lang('已填写')}</a>
        {{#  } }}
</script>
{/block}